package com.kimwu.kill.mall.order.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author KimWu
 * @since 2021-08-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("order_info")
@AllArgsConstructor
@NoArgsConstructor
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编号
     */
    @TableField("order_no")
    private String orderNo;

    /**
     * 购买的用户id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 购买对应的商品id
     */
    @TableField("item_id")
    private Integer itemId;

    /**
     * 商品单价
     */
    @TableField("item_price")
    private Double itemPrice;

    /**
     * 购买数量
     */
    @TableField("amount")
    private Integer amount;

    /**
     * 购买总金额
     */
    @TableField("order_price")
    private Double orderPrice;


}
